﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppAgenteVehiculo
{
    public class Vehiculo
    {
        public string Id { get; set; }
        public double KmTotal { get; set; }
        public double Latitud { get; set; }
        public double Longitud { get; set; }

        public Vehiculo(string idVehiculo)
        {
            Id = idVehiculo;
            KmTotal = 0;
            Latitud = 0;
            Longitud = 0;
        }

        public void MoverUbicacion()
        {
            Random random = new Random();

            int randomInt = random.Next(-90, 90);
            double randomDouble = random.NextDouble();

            Latitud = randomInt;// +randomDouble;

            randomInt = random.Next(-180, 180);
            randomDouble = random.NextDouble();

            Longitud = randomInt;// +randomDouble;
        }
    }
}
